﻿<%@ Page Language="C#"  MasterPageFile="~/MasterPage/MasterPage.master"
    AutoEventWireup="true" Inherits="SouthernLand.Membership.PasswordRecovery" CodeBehind="PasswordRecovery.aspx.cs" %>

<%@ Register Src="~/Controls/Title.ascx" TagName="Title" TagPrefix="uc" %>
<%@ Register TagPrefix="southern" Namespace="SouthernLand.Common.Untilities" Assembly="SouthernLand" %>
<asp:Content ID="MainContent" ContentPlaceHolderID="PageContent" runat="Server">
    <uc:Title runat="server" ID="Title" Visible="false" Text='QUÊN MẬT KHẨU' />
    <table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">
        <tr>
            <td class="list-real-estate-frame-top-left">
                &nbsp;
            </td>
            <td align="left" class="list-real-estate-frame-top width-98-5-pct">
                <span class="Frame_Title">
                    <asp:Label ID="FrameTitle" runat="server" Text="QUÊN MẬT KHẨU"></asp:Label></span>
            </td>
            <td class="list-real-estate-frame-top-right">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="list-real-estate-frame-mid-left">
            </td>
            <td class="width-98-5-pct padding-top-10">
                <table border="0" align="center" width="100%">
                    <tr>
                        <td align="left">
                            <div style="line-height: 20px;">
                                <%=ResourceManager.GetString("Membership_ForgotPassword_Title") %></div>
                            <p>
                            </p>
                            <asp:PasswordRecovery ID="PasswordRecovery1" runat="server" UserNameFailureText="Xin lỗi! Tên đăng nhập này không tồn tại trong hệ thống chúng tôi.">
                                <UserNameTemplate>
                                    <div>
                                        &nbsp;</div>
                                    <table cellpadding="2">
                                        <tr>
                                            <td style="width: 120px;" align="right">
                                                <asp:Label runat="server" ID="lblUsername" AssociatedControlID="UserName" Text="Tên đăng nhập:" />
                                            </td>
                                            <td style="width: 200px;">
                                                <asp:TextBox ID="UserName" runat="server" Width="100%"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="valRequireUserName" runat="server" ControlToValidate="UserName"
                                                    SetFocusOnError="true" Display="Dynamic" ErrorMessage="Username is required."
                                                    ToolTip="Username is required." ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <td colspan="3" style="text-align: right;">
                                            <asp:Label ID="FailureText" runat="server" ForeColor="red" EnableViewState="False" />
                                            <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Chấp nhận"
                                                ValidationGroup="PasswordRecovery1" />
                                        </td>
                                    </table>
                                </UserNameTemplate>
                                <QuestionTemplate>
                                    <div>
                                        Step 2: answer the following question</div>
                                    <p>
                                    </p>
                                    <table cellpadding="2">
                                        <tr>
                                            <td style="width: 80px;">
                                                Tên đăng nhập:
                                            </td>
                                            <td style="width: 300px;">
                                                <asp:Literal ID="UserName" runat="server"></asp:Literal>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label runat="server" ID="lblQuestion" AssociatedControlID="Question" Text="Question:" />
                                            </td>
                                            <td>
                                                <asp:Literal ID="Question" runat="server"></asp:Literal>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label runat="server" ID="lblAnswer" AssociatedControlID="Answer" Text="Answer:" />
                                            </td>
                                            <td>
                                                <asp:TextBox ID="Answer" runat="server" Width="100%"></asp:TextBox>
                                            </td>
                                            <td>
                                                <asp:RequiredFieldValidator ID="valRequireAnswer" runat="server" ControlToValidate="Answer"
                                                    SetFocusOnError="true" Display="Dynamic" ErrorMessage="Answer is required." ToolTip="Answer is required."
                                                    ValidationGroup="PasswordRecovery1">*</asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="3" style="text-align: right;">
                                                <asp:Label ID="FailureText" runat="server" EnableViewState="False" />
                                                <southern:LinkButton2 ID="SubmitButton" runat="server" CommandName="Chấn nhận" Text="Submit"
                                                    ValidationGroup="PasswordRecovery1" />
                                            </td>
                                        </tr>
                                    </table>
                                </QuestionTemplate>
                                <SuccessTemplate>
                                    <p align="center">
                                        <asp:Label runat="server" ID="lblSuccess" Font-Bold="true" ForeColor="blue" Text="Mật khẩu mới đã được gởi vào email của bạn." />
                                    </p>
                                </SuccessTemplate>
                                <MailDefinition BodyFileName="~/Membership/PasswordRecoveryMail.txt" From="info@vangvietnam.info"
                                    Subject="Nữ Trang Viet Nam: your password">
                                </MailDefinition>
                            </asp:PasswordRecovery>
                        </td>
                    </tr>
                </table>
            </td>
            <td class="list-real-estate-frame-mid-right">
            </td>
        </tr>
        <tr>
            <td class="list-real-estate-frame-bot-left">
            </td>
            <td align="center" class="list-real-estate-frame-bot-center">
            </td>
            <td class="list-real-estate-frame-bot-right">
            </td>
        </tr>
    </table>
</asp:Content>
